#!/usr/bin/env python
# _*_coding:utf-8 _*_
__author__ = "Gao"
"""画圆"""

import sys
import pygame
from pygame.locals import *
pygame.init()

screen = pygame.display.set_mode((600,500))

pygame.display.set_caption('画圆')    # 窗口标题

blue = (0,0,200)

while True:
    for event in pygame.event.get():
        if event.type in (QUIT,KEYDOWN):
            sys.exit()

    screen.fill(blue)

    color = 255, 255, 0
    position = 100 ,100    # 圆中心点坐标
    radius = 100    # 半径
    width = 1    # 线的粗细,如果值为0，则填充该图案
    pygame.draw.circle(screen,color,position,radius,width)    # 在窗口中画圆

    pygame.display.update()



